package com.sugar.follow.up.module.business.controller.admin.questionnairetemplate.vo;

import com.sugar.follow.up.framework.excel.core.annotations.DictFormat;
import com.sugar.follow.up.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

import static com.sugar.follow.up.module.infra.enums.DictTypeConstants.BOOLEAN_STRING;

@Schema(description = "管理后台 - 问卷模板 Response VO")
@Data
@ExcelIgnoreUnannotated
public class QuestionnaireTemplateRespVO {

    @Schema(description = "问卷模板ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18571")
    @ExcelProperty("问卷模板ID")
    private Long id;

    @Schema(description = "问卷标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("问卷标题")
    private String title;

    @Schema(description = "是否需要填写姓名（0否 1是）", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty(value = "需要填写姓名", converter = DictConvert.class)
    @DictFormat(BOOLEAN_STRING)
    private Boolean needInputName;

    @Schema(description = "是否需要选择年龄（0否 1是）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "需要选择年龄", converter = DictConvert.class)
    @DictFormat(BOOLEAN_STRING)
    private Boolean needSelAge;

    @Schema(description = "是否需要选择性别（0否 1是）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "需要选择性别", converter = DictConvert.class)
    @DictFormat(BOOLEAN_STRING)
    private Boolean needSelGender;

    @Schema(description = "是否需要选择日期（0否 1是）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "需要选择日期", converter = DictConvert.class)
    @DictFormat(BOOLEAN_STRING)
    private Boolean needSelDate;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
}
